public class Animal {
    private String name;
    public Animal(String name   ) {
        this.name = name;
        System.out.println("Animal 构造方法块");
    }

    {
        System.out.println("Animal 实例代码块");
    }
    static {
        System.out.println("Animal 静态代码块");
    }
}
class Dog extends Animal{
     String name;
    public Dog(String name) {
        super(name);
        System.out.println("Dog 构造方法块");
    }
    {
        System.out.println("Dog 实例代码块");
    }
    static {
        System.out.println("Dog 静态代码块");
    }

}